import {LOGIN, STORE} from '../type';
import {createReducer} from '../'

const initialState = {
    type: LOGIN.CLEAR,
    statisticsDetail:{
        refund:''
    }

};

const actionHandler = {
    [LOGIN.IN]: (state, action) => {
        return {}
    },
    [LOGIN.STATISTICS_DETAIL]: (state, action) => {
        return {
            ...state,
            statisticsDetail: action.res
        }
    },
};

export default createReducer(initialState, actionHandler)